<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script  src="<?=base_url()?>fckeditor/fckeditor.js" language="javascript"></script>
<script src="<?=base_url()?>system/application/views/css/js.js" language="javascript"></script>
<link href="<?=base_url()?>system/application/views/css/style.css" rel="stylesheet" type="text/css" />
<link href="<?=base_url()?>system/application/views/css/admin_edit.css" rel="stylesheet" type="text/css" />
<title>更新新闻</title>
<script>
         var  myfck = new  FCKeditor('content');
		 myfck.Width = 600;
		 myfck.Height = 800;
		 myfck.BasePath = '<?=base_url()?>fckeditor/';
		 myfck.ToolbarSets='Basic';
</script>
<body>
<div class="wrap">
<table id="mytable" cellspacing="0"> 
<?php foreach($query->result() as $row) : ?>
<?php echo form_open('admin_news/updatenews'); ?>
<tr> 
<th class="col">标题</th> 
<td class="row"><input type="text" id="title" name="title" size="25" value="<?=$row->title?>" /></td>

 
</tr> 
<tr>
<th class="col">所属类别</th>
<td class="row">
	<select name="sortid">
        <?php foreach ($child as $value){?><option value=<?php if($row->sortid==$value->sortid)
        { echo $value->sortid;echo " selected";
        }
        else { echo $value->sortid;}
        ?>
        >
		 <?php for($i=0;$i<$value->deep;$i++){echo "^_^";} echo $value->title;?></option>
		 <?php }?>
</td>
</tr>
<tr>
<th class="col">内容</th> 
<?php $a=$row->content;?>
<td class="row"><script language="javascript">
 myfck.Value="<?php echo $a?>";
 			myfck.Create();
			
	  </script>
	 
	  </td> 
</tr> 
<input type="hidden" name="newsid" value="<?=$row->newsid ?>" />
<tr><td align="center" colspan="2"><input type="submit" onclick="return check_form();" value="ok"/></td></tr>
<?php endforeach; ?>
</table> 

</div>
 
      
  
</body>
</html>

